package com.test.shiro.domain;

import com.test.shiro.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User,Integer> {
    @Query(value = "SELECT * from t_user ll where ll.uname=?1",nativeQuery = true)
    List<User> findByUname(String uname);
}
